<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta content="telephone=no" name="format-detection" />
	<meta name="Description" content=""/>
	<meta name="Keywords" content=""/>
	<link href="favicon.ico" mce_href="favicon.ico" rel="bookmark" type="image/x-icon" />
	<link href="favicon.ico" mce_href="favicon.ico" rel="icon" type="image/x-icon" />
	<link href="favicon.ico" mce_href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<title>盖网魔盒</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/styles.css">
	<script src="js/jquery-2.2.2.min.js"></script>
	<script src="js/jquery.flexslider-min.js"></script>
	<script src="js/common.js"></script>	
    <script src="json/newsJson_GuoJiNews.js"></script>
    <script src="json/newsJson_JianKangNews.js"></script>
    <script src="json/newsJson_LvYouNews.js"></script>
    <script src="json/newsJson_SheHuiNews.js"></script>
    <script src="json/newsJson_ShengHuoNews.js"></script>
    <script src="json/newsJson_ShiShangNews.js"></script>
    <script src="json/newsJson_XingZuoNews.js"></script>
    <script src="json/newsJson_XinLiNews.js"></script>
    <script src="json/newsJson_YuLeNews.js"></script>
	<script>
		$(function(){
			if(window.name=="gwmhLogined"){
				$("#authentication").attr("href","hasLogined.html");
			}
					
			$(".affix .icon.heart").click(function(){
				$(this).toggleClass("active");
			})
			
			//读取数据
			$.getUrlParam = function (name) {  
             var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");  
             var r = window.location.search.substr(1).match(reg);  
             if (r != null) return unescape(r[2]); return null;  
         }  
			var column=$.getUrlParam('column');//对应的栏目
       	  	var newKey=$.getUrlParam('new');//当前数据key值（json数组的下标）
			
			if(column=="JianKangNews"){
				var newD=JianKangNews[newKey];//当前健康资讯数据读取
			}else if(column=="LvYouNews"){
				var newD=LvYouNews[newKey];//当前旅游资讯数据读取
			}else if(column=="ShengHuoNews"){
				var newD=ShengHuoNews[newKey];//当前生活资讯数据读取
			}else if(column=="ShiShangNews"){
				var newD=ShiShangNews[newKey];//当前时尚资讯数据读取
			}else if(column=="XinLiNews"){
				var newD=XinLiNews[newKey];//当前心理资讯数据读取
			}else if(column=="XingZuoNews"){
				var newD=XingZuoNews[newKey];//当前星座资讯数据读取
			}else if(column=="YuLeNews"){
				var newD=YuLeNews[newKey];//当前娱乐资讯数据读取
			}else if(column=="GuoJiNews"){
				var newD=GuoJiNews[newKey];//当前科技资讯数据读取
			}else if(column=="SheHuiNews"){
				var newD=SheHuiNews[newKey];//当前科技资讯数据读取
			}
			
			
			//绑数据
			if(newD["img"]==""){
				$("#img").hide();
			}else{
				$("#img").attr("src",newD["img"]);
			}
			$(".title").html(newD["title"]);
			$(".content").html(newD["content"]);
		})
	</script>	
</head>
<body>
	<header class="header">
		<a href="javascript:history.go(-1)" class="reback"></a>
	</header>
	<section class="container">
		<div class="theme">
			<img src="" alt="" id="img">
			<div class="decoration"></div>
		</div>	
		<div class="news-details">
			<div class="clearfix">
				<p class="title"></p>
				<div class="affix">				
					<span class="jiathis_style_m"></span>
					<script src="js/share.js" charset="utf-8"></script>
					<a href="javascript:void" class="icon heart"></a>
				</div>
			</div>
			<div class="content"></div>
		</div>
	</section>
	<footer class="footer">
		<ul class="menu clearfix">
			<li>
				<a href="index.html">
					<i class="icon ico-01 active"></i>
					<span>主页</span>
				</a>
			</li>
			<li>
				<a href="login.html" id="authentication">
					<i class="icon ico-02"></i>
					<span>认证上网</span>
				</a>
			</li>
			<li>
				<a href="social.html">
					<i class="icon ico-03"></i>
					<span>局域社交</span>
				</a>
			</li>
		</ul>
	</footer>	
</body>
</html>